/*
 这文件是手机端的公共头部，主要懒得麻烦，所以每个网站都一样的
*/
.sj-head { 
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 10px 5px;
  position: relative;
  z-index: 90;
  background: $base;

  .logo {
    flex: 1;
    text-align: center;
    height: 22px;

    img {
      height: 22px;
      width: auto;
    }

    a {
      display: block;
      text-align: center;
    }
  }

  .go-home {
    width: 45px;
    height: 45px;
    line-height: 45px;
    display: block;
    text-align: center;
    font-size: 25px;
    color: #fff;

    i {
      font-size: 25px;
      color: $color;
    }
  }

}



.icon-an {
  height: 25px;
  width: 45px;
  z-index: 9999;
  position: relative;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  align-items: center;

  span {
    border-radius: 1px;
    background-color: #fff;
    width: 20px;
    height: 1px;
    transition: .3s ease-out;
  }
}

.side-phone {
  transform:  translate(0%, -100px);
  opacity: .0;
  transition:.5s 1s;
  text-align: left;
  margin-top: 3vw;
  padding: 0px 2vw;

  b {
    display: block;
    color: #999;
    font-weight: 100;
  }

  a {
    color: rgba(0, 0, 0, 1);
    font-size: 18px;
    font-family: 'AddFont';
  }

}




.icon-an1.m-click-this {
  span {
    &.icon-an-2 {
      margin-left: -20px;
    }
  }
}

.icon-an2.m-click-this {
  span {
    &.icon-an-1 {
      -webkit-transform: translate3d(0, 8px, 0) rotate(45deg);
      transform: translate3d(0, 8px, 0) rotate(45deg);
    }

    &.icon-an-2 {
      opacity: 0;
      -webkit-transform: translate3d(-20px, 0, 0);
      transform: translate3d(-20px, 0, 0);
    }

    &.icon-an-3 {
      -webkit-transform: translate3d(0, -8px, 0) rotate(-45deg);
      transform: translate3d(0, -8px, 0) rotate(-45deg);
    }
  }
}



.sj-nav {
  position: fixed;
  visibility: hidden;
  overflow: hidden;
  overflow-y: auto;
  padding-bottom: 80px;
  right: 100%;
  top: 0px;
  height: 100%;
  width: 220px;
  z-index: 999;
transform-origin:(0% 0%);
 transition:all .5s;
  background: #fff;
  z-index: 9999;

  .logos {
    padding: 20px;
    text-align: center;

    img {
      width: auto;
    }
  }

  li {
    position: relative;
    height: 60px;
    line-height: 60px;
    font-size: 14px;

    a {
      display: block;
      position: relative;
      z-index: 9;
      transition:transform .0s .5s;

      padding: 0px .5rem;
    }

    &.active {
      a {
        transition:color .5s .5s;
      }

      &:before {
        background: $base;
        content: "";
        transition:.5s .5s;
       transform: translate(-500%, 0);
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
      }
    }

  }

}

.sj-nav.m-click-this {
  visibility: visible;
  transform: translate(220px, 0);

  li {
    opacity: 1;
    transform:  translate(0%, 0px);
    width: 100%;
    overflow: hidden;
    flex:none;

    &.active {
      &:before {
        transform: translate(-0%, 0);
      }

      a {
        color: #fff;
      }
    }
  }

  .side-phone {
    transform: translate(0%, 0px);
    opacity: 1;
  }
}


//内页菜单

.menu1 {
  background: #fff;
  text-align: center;

  ul {
    padding: 0px 20px;
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
  }

  li {
    display: inline-block;
    padding: 0px 8px;
    line-height: 45px;
    position: relative;

    &:after {
      position: absolute;
      transition:all .5s;
      height: 2px;
      background: $base;
      width: 0px;
      left: 50%;
      bottom: 0px;
      content: "";
    }

    &.active {

      &:after {
        width: 20px;
        margin-left: -10px;
      }

    }

  }

}

.foot-menu {
  position: fixed;
  z-index: 99;
  width: 100%;
  left: 0px;
  bottom: 0px;
  background: #fff;
  display: none;

  ul {
   display: flex;

    li {
      flex:1;
      text-align: center;

      h6 {
        font-size: 12px;
      }

      p {
        font-size: 12px;
        line-height: 18px;
      }

      a {
        padding: 10px 0;
        display: block;
      }

      i {
        font-size: 22px;
        line-height: 22px;
      }
    }
  }
}
@media screen and (max-width: 900px) {
  .foot-menu { display: block;}
}
